let { userFunc } = require('./userFunc');
let { generator } = require('./generator');
function main() {
    let gen$ = generator(userFunc);
    let iterator = gen$();
    console.log(iterator.next());
}
main();




// console.log(iterator.next());
// iterator.throw("error1");
// try {
// iterator.throw("error2");
// } catch(ex) {
//     console.log(iterator.next());
// }
// console.log(iterator.next());
// console.log(iterator.next());